<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: percent类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../da/d12/classpercent-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">percent类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>百分比控件  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../de/db7/percent_8h_source.html">percent.h</a>&gt;</code></p>
<div class="dynheader">
类 percent 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d2c/classpercent__inherit__graph.png" border="0" usemap="#apercent_inherit__map" alt="Inheritance graph"/></div>
<map name="apercent_inherit__map" id="apercent_inherit__map">
<area shape="rect" title="百分比控件" alt="" coords="5,123,195,453"/>
<area shape="rect" title=" " alt="" coords="68,5,132,75"/>
<area shape="poly" title=" " alt="" coords="103,90,103,123,97,123,97,90"/>
</map>
</div>
<div class="dynheader">
percent 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d9/d90/classpercent__coll__graph.png" border="0" usemap="#apercent_coll__map" alt="Collaboration graph"/></div>
<map name="apercent_coll__map" id="apercent_coll__map">
<area shape="rect" title="百分比控件" alt="" coords="5,123,195,453"/>
<area shape="rect" title=" " alt="" coords="68,5,132,75"/>
<area shape="poly" title=" " alt="" coords="103,90,103,123,97,123,97,90"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae41c50b64056aa9f9ac5b9d96b31ccb9" id="r_ae41c50b64056aa9f9ac5b9d96b31ccb9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae41c50b64056aa9f9ac5b9d96b31ccb9">percent</a> (QWidget *parent=nullptr)</td></tr>
<tr class="separator:ae41c50b64056aa9f9ac5b9d96b31ccb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f127b4019e99ff081b8ef0564908734" id="r_a3f127b4019e99ff081b8ef0564908734"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3f127b4019e99ff081b8ef0564908734">~percent</a> ()</td></tr>
<tr class="separator:a3f127b4019e99ff081b8ef0564908734"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c7cced5aeff039a7db0705225c050bb" id="r_a8c7cced5aeff039a7db0705225c050bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8c7cced5aeff039a7db0705225c050bb">setBackground</a> (const QColor &amp;c)</td></tr>
<tr class="separator:a8c7cced5aeff039a7db0705225c050bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7788578edbadfaacecb90cc386df28f5" id="r_a7788578edbadfaacecb90cc386df28f5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7788578edbadfaacecb90cc386df28f5">setArcColor</a> (const QColor &amp;c)</td></tr>
<tr class="separator:a7788578edbadfaacecb90cc386df28f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa6d61ee0f544c25c9bbeef034ba3fbf" id="r_afa6d61ee0f544c25c9bbeef034ba3fbf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afa6d61ee0f544c25c9bbeef034ba3fbf">setRatioFont</a> (const QFont &amp;f, const QColor &amp;c)</td></tr>
<tr class="separator:afa6d61ee0f544c25c9bbeef034ba3fbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78802f5bc659b30ada9c39ca76bcfdcb" id="r_a78802f5bc659b30ada9c39ca76bcfdcb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a78802f5bc659b30ada9c39ca76bcfdcb">setAngle</a> (float s, float e)</td></tr>
<tr class="separator:a78802f5bc659b30ada9c39ca76bcfdcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c51534bf7d41647fef613074992505c" id="r_a9c51534bf7d41647fef613074992505c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9c51534bf7d41647fef613074992505c">setCanvasColor</a> (const QColor &amp;c)</td></tr>
<tr class="separator:a9c51534bf7d41647fef613074992505c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9065a31d4fea785d7aea4ebda3bfd5c" id="r_af9065a31d4fea785d7aea4ebda3bfd5c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af9065a31d4fea785d7aea4ebda3bfd5c">setValue</a> (float ratio)</td></tr>
<tr class="memdesc:af9065a31d4fea785d7aea4ebda3bfd5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置百分比  <br /></td></tr>
<tr class="separator:af9065a31d4fea785d7aea4ebda3bfd5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>百分比控件 </p>

<p class="definition">在文件 <a class="el" href="../../de/db7/percent_8h_source.html">percent.h</a> 第 <a class="el" href="../../de/db7/percent_8h_source.html#l00009">9</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ae41c50b64056aa9f9ac5b9d96b31ccb9" name="ae41c50b64056aa9f9ac5b9d96b31ccb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae41c50b64056aa9f9ac5b9d96b31ccb9">&#9670;&#160;</a></span>percent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">percent::percent </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>parent</em></span><span class="paramdefsep"> = </span><span class="paramdefval">nullptr</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d9/df0/percent_8cpp_source.html">percent.cpp</a> 第 <a class="el" href="../../d9/df0/percent_8cpp_source.html#l00004">4</a> 行定义.</p>

</div>
</div>
<a id="a3f127b4019e99ff081b8ef0564908734" name="a3f127b4019e99ff081b8ef0564908734"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f127b4019e99ff081b8ef0564908734">&#9670;&#160;</a></span>~percent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">percent::~percent </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d9/df0/percent_8cpp_source.html">percent.cpp</a> 第 <a class="el" href="../../d9/df0/percent_8cpp_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a78802f5bc659b30ada9c39ca76bcfdcb" name="a78802f5bc659b30ada9c39ca76bcfdcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78802f5bc659b30ada9c39ca76bcfdcb">&#9670;&#160;</a></span>setAngle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void percent::setAngle </td>
          <td>(</td>
          <td class="paramtype">float</td>          <td class="paramname"><span class="paramname"><em>s</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float</td>          <td class="paramname"><span class="paramname"><em>e</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/db7/percent_8h_source.html">percent.h</a> 第 <a class="el" href="../../de/db7/percent_8h_source.html#l00030">30</a> 行定义.</p>

</div>
</div>
<a id="a7788578edbadfaacecb90cc386df28f5" name="a7788578edbadfaacecb90cc386df28f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7788578edbadfaacecb90cc386df28f5">&#9670;&#160;</a></span>setArcColor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void percent::setArcColor </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>c</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/db7/percent_8h_source.html">percent.h</a> 第 <a class="el" href="../../de/db7/percent_8h_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<a id="a8c7cced5aeff039a7db0705225c050bb" name="a8c7cced5aeff039a7db0705225c050bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c7cced5aeff039a7db0705225c050bb">&#9670;&#160;</a></span>setBackground()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void percent::setBackground </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>c</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/db7/percent_8h_source.html">percent.h</a> 第 <a class="el" href="../../de/db7/percent_8h_source.html#l00027">27</a> 行定义.</p>

</div>
</div>
<a id="a9c51534bf7d41647fef613074992505c" name="a9c51534bf7d41647fef613074992505c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c51534bf7d41647fef613074992505c">&#9670;&#160;</a></span>setCanvasColor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void percent::setCanvasColor </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>c</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/db7/percent_8h_source.html">percent.h</a> 第 <a class="el" href="../../de/db7/percent_8h_source.html#l00031">31</a> 行定义.</p>

</div>
</div>
<a id="afa6d61ee0f544c25c9bbeef034ba3fbf" name="afa6d61ee0f544c25c9bbeef034ba3fbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa6d61ee0f544c25c9bbeef034ba3fbf">&#9670;&#160;</a></span>setRatioFont()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void percent::setRatioFont </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;</td>          <td class="paramname"><span class="paramname"><em>f</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>c</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af9065a31d4fea785d7aea4ebda3bfd5c" name="af9065a31d4fea785d7aea4ebda3bfd5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9065a31d4fea785d7aea4ebda3bfd5c">&#9670;&#160;</a></span>setValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void percent::setValue </td>
          <td>(</td>
          <td class="paramtype">float</td>          <td class="paramname"><span class="paramname"><em>ratio</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置百分比 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ratio[</td><td>I ]，百分比0~100 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../de/db7/percent_8h_source.html">percent.h</a> 第 <a class="el" href="../../de/db7/percent_8h_source.html#l00036">36</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/QT/<a class="el" href="../../de/db7/percent_8h_source.html">percent.h</a></li>
<li>src/QT/<a class="el" href="../../d9/df0/percent_8cpp_source.html">percent.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
